<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
cfc('core')->checklogin();
if($_RQ['op']=='main'){
	$member=pdo_get('core_members',array('id'=>$_SESSION['uid']));
	$return['member']=$member;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	if(!$postdata['message']){
		exi('请输入内容','error');
	}
	$data=array_fields(array('message'),$postdata);
	$data['uniacid']=$_SESSION['uniacid'];
	$data['mid']=$_SESSION['uid'];
	$data['createtime']=TIMESTAMP;
	pdo_insert('jy_daijia_suggest',$data);
	exi('提交成功','','/home/main');
}        
?>